﻿using System.Runtime.Serialization;

namespace TheVerge.Base {
	[DataContract]
	public class Hubs {
        [DataMember(Name = "hubs")]
        public Hub[] All { get; set; }
	}

    [DataContract]
    public class Hub
    {
        [DataMember(Name = "id")]
        public int Id { get; set; }

        [DataMember(Name = "title")]
        public string Title { get; set; }
    }

    [DataContract]
    public class Categories
    {
        [DataMember(Name = "categories")]
        public Category[] All { get; set; }
    }

    [DataContract]
    public class Category
    {
        [DataMember(Name = "id")]
        public int Id { get; set; }

        [DataMember(Name = "name")]
        public string Title { get; set; }

        [DataMember(Name="parent_id")]
        public int? ParentId { get; set; }
    }

    [DataContract]
    public class Brands
    {
        [DataMember(Name="brands")]
        public Brand[] All { get; set; }
    }

    [DataContract]
    public class Brand
    {
        [DataMember(Name = "id")]
        public int Id { get; set; }
        
        [DataMember(Name = "name")]
        public string Name { get; set; }
    }
}
